import type {App} from 'vue'
import GoLoading from './index.vue'
import AsyncLoading from './index.vue'
import AsyncSkeletonLoading from './LoadingSkeleton.vue'

// 正常组件
export {GoLoading}

// 异步组件
AsyncLoading.install = (app: App):void => {
    app.component('AsyncLoading', AsyncLoading)
}

AsyncSkeletonLoading.install = (app: App):void => {
    app.component('AsyncSkeletonLoading', AsyncSkeletonLoading)
}

export { AsyncLoading, AsyncSkeletonLoading }